package com.zzy.study.io;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;

public class TestDataInputStream {

	public static void main(String[] args) throws IOException {
		DataInputStream in = new DataInputStream(new FileInputStream("f:\\test\\test.txt"));
		
		System.out.println(in.read());
		System.out.println(in.readDouble());
		System.out.println(in.readInt());
		System.out.println(in.readInt());
	}

}
